import request from '@/utils/request'

// 查询智能体配置管理列表
export function listRole(data) {
  return request({
    url: '/ai/agentmodemode/page',
    method: 'put',
    data: data
  })
}

//新增
export function agentmodemodeadd(data) {
  return request({
    url: '/ai/agentmodemode/add',
    method: 'POST',
    data: data
  })
}
//修改
export function agentmodemodeUpdate(data) {
  return request({
    url: '/ai/agentmodemode/update',
    method: 'put',
    data:  data
  })
}
//获取智能体配置详细信息
export function agentModeInfo(agentModeId) {
  return request({
    url: '/ai/agentmodemode/agentModeInfo/' + agentModeId,
    method: 'GET',
  })
}

// 禁用智能体
export function activeID(id,active) {
  return request({
    url: `/ai/agentmodemode/active/${id}/${active}`,
    method: 'POST',
  })
}

// 查询智能体管理列表
export function listagent(data) {
  return request({
    url: '/ai/agent/page',
    method: 'put',
    data: {
      userPageDTO: data
    }
  })
}

// 删除智能体
export function deleteRemove(id) {
  return request({
    url: `/ai/agentmodemode/remove/${id}`,
    method: 'DELETE',
  })
}